package com.karina.visualization.chart.model;

import com.google.gwt.event.shared.GwtEvent;

public class ModelEvent extends GwtEvent<ModelEventHandler> {

	static class ModelChangeType extends Type<ModelEventHandler> {

	}

	@SuppressWarnings("rawtypes")
	private DataModel data;

	@SuppressWarnings("rawtypes")
	public ModelEvent(DataModel model) {
		model = data;
	}

	@SuppressWarnings("rawtypes")
	public DataModel getData() {
		return data;
	}

	public static final ModelChangeType model_change_type = new ModelChangeType();

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ModelEventHandler> getAssociatedType() {
		return model_change_type;
	}

	@Override
	protected void dispatch(ModelEventHandler handler) {
		handler.modelChange(this);
	}
}
